" vim:ft=vim

Execute(FloatermNew git commit --amend):
  FloatermKill!
  let pwd = $PWD
  silent execute printf('!touch %s/afile && git add afile', pwd)
  FloatermNew git commit
  sleep 1000m

  Log $GIT_EDITOR
  Log nvim_win_get_config(win_getid())
  for l in range(1, line('$'))
    Log getline(l)
  endfor

  Log expand('%')
  Log &ft
  AssertNotEqual 'floaterm',&filetype
  silent execute printf('!cd %s && rm afile && git add afile', pwd)

Execute (Exit):
  stopinsert
  FloatermKill!
  sleep 100m
